package com.example.hello.controller;

import com.example.hello.bean.User1;
import com.example.hello.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {
    @Autowired
    private UserMapper userMapper;
    @RequestMapping("/mybatisSelect")
    public User1 mybatisSelect(int id){

        return userMapper.select(id);
    }
}
